package com.mall.model.entity.Pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * sku
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "sku",description = "")
@TableName("pms_sku")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PmsSku implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 商品id */
    @Schema(name = "商品id",description = "")
    private Long productId;
    /** sku编码 */
    @Schema(name = "sku编码",description = "")
    private String skuCode;
    /** 颜色 */
    @Schema(name = "颜色",description = "")
    private String color;
    /** 库存数量 */
    @Schema(name = "库存数量",description = "")
    private Integer stock;
    /** 商品价格 */
    @Schema(name = "商品价格",description = "")
    private Double price;
    /** 成本价 */
    @Schema(name = "成本价",description = "")
    private Double costPrice;
    /** 重量 */
    @Schema(name = "重量",description = "")
    private Double weight;
}